<div class="header" ng-controller="headController">
    <div class="head">
        <div class="headcontain">
            <ul>
                <li>
                    <a href="/users/homepage">
                        <div class="tabli">
                            <i class="fa fa-bars" aria-hidden="true"></i>首页
                        </div>
                    </a>

                    <div class="tabdiv" ng-show="false">1</div>
                </li>
                <li>
                    <a href="/users/exam">
                        <div class="tabli">
                            <i class="fa fa-pencil-square-o" aria-hidden="true"></i>在线考试
                        </div>
                    </a>
                    <div class="tabdiv" ng-show="false"></div>
                </li>
                <li>
                    <% if(user.identity==1){%>
                        <div class="tabli">
                            <i class="fa fa-commenting-o" aria-hidden="true"></i>在线评教
                        </div>
                        <%} else{%>
                            <div class="tabli">
                                <i class="fa fa-commenting-o" aria-hidden="true"></i>查看评教
                            </div>
                            <%}%>
                                <div class="tabdiv" ng-show="false"</div>
                </li>

                <li>
                    <a href="/users/rule">
                        <div class="tabli">
                            <i class="fa fa-graduation-cap" aria-hidden="true"></i>校规校训
                        </div>
                    </a>
                    <div class="tabdiv" ng-show="false"></div>
                </li>
                <li>
                    <%if(user.identity==0){%>
                        <a href="/teachers/classmsg">
                            <div class="tabli">
                                <i class="fa fa-desktop" aria-hidden="true"></i>班级信息
                            </div>
                        </a>
                        <%} else {%>
                            <input type="hidden" ng-init="className = '<%=user.className%>'" ng-model="className">
                            <a href="/users/stuclassmsg">
                                <div class="tabli">
                                    <i class="fa fa-desktop" aria-hidden="true"></i>班级信息
                                </div>
                            </a>
                            <%}%>
                                <div class="tabdiv" ng-show="false"></div>
                </li>
                <li>
                    <%if(user.identity==1){%>
                        <a href="/users/persondata?studentNo=<%=user.studentNo%>">
                            <div class="tabli">
                                <i class="fa fa-user" aria-hidden="true"></i>
                                个人资料
                            </div>
                        </a>
                        <%}%>
                            <div class="tabdiv" ng-show="false"></div>
                </li>
                <li>
                    <div class="tabli">
                        <i class="fa fa-cog" aria-hidden="true"></i>设置
                    </div>
                    <div class="tabdiv">
                        <p class="daynight">
                            <span>日间</span>
                            <span>夜间</span>
                        </p>
                        <% if(user.identity == 0) {%>
                            <a href="/teachers/addclass">
                                <p>添加班级</p>
                            </a>
                            <a href="/teachers/addstudent">
                                <p>添加学生</p>
                            </a>
                            <%}%>
                                <a href="/users/alterpwd">
                                    <p>修改密码</p>
                                </a>
                                <%if(user.identity == 1){%>
                                    <a href="/users/persondata/:studentNo=<%=user.studentNo%>">
                                        <p>个人资料</p>
                                    </a>
                                    <%}%>


                    </div>
                </li>
                <li ng-click="logout()">

                    <div class="tabli">
                        <i class="fa fa-sign-out" aria-hidden="true"></i>退出
                    </div>

                    <div class="tabdiv" ng-show="false">8</div>
                </li>
            </ul>


        </div>
    </div>
</div>